package com.dinpay.plugin.activity;

import android.content.Context;
import android.content.Intent;
import android.content.res.Resources;
import android.graphics.Color;
import android.os.Bundle;
import android.util.DisplayMetrics;
import android.view.KeyEvent;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.ImageView.ScaleType;
import android.widget.LinearLayout;
import android.widget.LinearLayout.LayoutParams;
import android.widget.RelativeLayout;
import android.widget.RelativeLayout.LayoutParams;
import android.widget.TextView;
import com.dinpay.plugin.c.a.a;
import com.dinpay.plugin.d.i;

public class PayResultActivity extends DinpayBaseActivity
{
  private static String k;
  private TextView a;
  private TextView b;
  private TextView c;
  private TextView d;
  private TextView e;
  private String f;
  private String g;
  private String h;
  private String i;
  private String j;
  private Context l;
  private View.OnClickListener m = new ad(this);

  protected void onCreate(Bundle paramBundle)
  {
    super.onCreate(paramBundle);
    int n = (int)(0.5F + 30.0F * getResources().getDisplayMetrics().density);
    int i1 = (int)(0.5F + 240.0F * getResources().getDisplayMetrics().density);
    int i2 = (int)(0.5F + 120.0F * getResources().getDisplayMetrics().density);
    LinearLayout.LayoutParams localLayoutParams1 = new LinearLayout.LayoutParams(-1, -1);
    localLayoutParams1.gravity = 17;
    LinearLayout localLinearLayout1 = new LinearLayout(this);
    localLinearLayout1.setLayoutParams(localLayoutParams1);
    localLinearLayout1.setOrientation(1);
    localLinearLayout1.setBackgroundColor(Color.parseColor("#f2f2f2"));
    RelativeLayout localRelativeLayout = new RelativeLayout(this);
    localRelativeLayout.setBackgroundDrawable(i.a(getResources(), PayResultActivity.class, a.a.n));
    localRelativeLayout.setLayoutParams(new LinearLayout.LayoutParams(-1, (int)(0.5F + 40.0F * getResources().getDisplayMetrics().density)));
    RelativeLayout.LayoutParams localLayoutParams2 = new RelativeLayout.LayoutParams(-2, -2);
    localLayoutParams2.addRule(9);
    localLayoutParams2.addRule(15);
    localLayoutParams2.leftMargin = 10;
    ImageView localImageView1 = new ImageView(this);
    localImageView1.setScaleType(ImageView.ScaleType.CENTER);
    localImageView1.setAdjustViewBounds(true);
    localImageView1.setPadding(15, 10, 0, 10);
    localImageView1.setId(200001);
    localImageView1.setVisibility(8);
    localImageView1.setBackgroundDrawable(i.a(getResources(), PayResultActivity.class, a.a.i));
    localImageView1.setOnClickListener(this.m);
    RelativeLayout.LayoutParams localLayoutParams3 = new RelativeLayout.LayoutParams(-2, -2);
    localLayoutParams3.addRule(13);
    TextView localTextView1 = new TextView(this);
    localTextView1.setText("订单支付");
    localTextView1.setTextSize(18.0F);
    localTextView1.setTextColor(Color.parseColor("#FFFFFF"));
    localTextView1.setId(1000002);
    localTextView1.setGravity(17);
    RelativeLayout.LayoutParams localLayoutParams4 = new RelativeLayout.LayoutParams(-2, -2);
    localLayoutParams4.addRule(11);
    localLayoutParams4.addRule(15);
    localLayoutParams4.rightMargin = 10;
    ImageView localImageView2 = new ImageView(this);
    localImageView2.setScaleType(ImageView.ScaleType.CENTER);
    localImageView2.setAdjustViewBounds(true);
    localImageView2.setId(100001);
    localImageView2.setBackgroundDrawable(i.a(getResources(), PayResultActivity.class, a.a.m));
    localRelativeLayout.addView(localImageView1, localLayoutParams2);
    localRelativeLayout.addView(localTextView1, localLayoutParams3);
    localRelativeLayout.addView(localImageView2, localLayoutParams4);
    localLinearLayout1.addView(localRelativeLayout);
    LinearLayout.LayoutParams localLayoutParams5 = new LinearLayout.LayoutParams(i1, i2);
    localLayoutParams5.topMargin = n;
    localLayoutParams5.bottomMargin = n;
    localLayoutParams5.leftMargin = n;
    localLayoutParams5.rightMargin = n;
    localLayoutParams5.gravity = 1;
    LinearLayout localLinearLayout2 = new LinearLayout(this);
    localLinearLayout2.setBackgroundColor(Color.parseColor("#FFFFFF"));
    localLinearLayout2.setOrientation(0);
    localLinearLayout2.setPadding(0, 20, 0, 20);
    LinearLayout.LayoutParams localLayoutParams6 = new LinearLayout.LayoutParams(-2, -2);
    localLayoutParams6.gravity = 3;
    localLayoutParams6.setMargins(10, 10, 0, 0);
    this.a = new TextView(this);
    this.a.setGravity(3);
    this.a.setTextSize(18.0F);
    this.a.setTextColor(Color.parseColor("#4EC7F3"));
    localLinearLayout2.addView(this.a, localLayoutParams6);
    localLinearLayout1.addView(localLinearLayout2);
    LinearLayout localLinearLayout3 = new LinearLayout(this);
    localLinearLayout3.setOrientation(0);
    LinearLayout.LayoutParams localLayoutParams7 = new LinearLayout.LayoutParams(-1, 1);
    ImageView localImageView3 = new ImageView(this);
    localImageView3.setBackgroundColor(Color.parseColor("#ffc8c8cb"));
    localLinearLayout3.addView(localImageView3, localLayoutParams7);
    localLinearLayout1.addView(localLinearLayout3);
    LinearLayout localLinearLayout4 = new LinearLayout(this);
    localLinearLayout4.setBackgroundColor(Color.parseColor("#FFFFFF"));
    localLinearLayout4.setOrientation(0);
    localLinearLayout4.setPadding(0, 10, 0, 0);
    LinearLayout localLinearLayout5 = new LinearLayout(this);
    localLinearLayout5.setBackgroundColor(Color.parseColor("#FFFFFF"));
    localLinearLayout5.setOrientation(0);
    localLinearLayout5.setPadding(0, 10, 0, 0);
    LinearLayout.LayoutParams localLayoutParams8 = new LinearLayout.LayoutParams(-2, -2);
    localLayoutParams8.gravity = 3;
    localLayoutParams8.setMargins(10, 10, 0, 0);
    TextView localTextView2 = new TextView(this);
    localTextView2.setGravity(3);
    localTextView2.setTextSize(18.0F);
    localTextView2.setText("商家名称：");
    localTextView2.setTextColor(Color.parseColor("#ff50494a"));
    this.b = new TextView(this);
    this.b.setGravity(3);
    this.b.setTextSize(18.0F);
    this.b.setTextColor(Color.parseColor("#ff50494a"));
    localLinearLayout5.addView(localTextView2, localLayoutParams8);
    localLinearLayout5.addView(this.b, localLayoutParams8);
    localLinearLayout1.addView(localLinearLayout5);
    LinearLayout localLinearLayout6 = new LinearLayout(this);
    localLinearLayout6.setBackgroundColor(Color.parseColor("#FFFFFF"));
    localLinearLayout6.setOrientation(0);
    localLinearLayout6.setPadding(0, 10, 0, 0);
    LinearLayout.LayoutParams localLayoutParams9 = new LinearLayout.LayoutParams(-2, -2);
    localLayoutParams9.gravity = 3;
    localLayoutParams9.setMargins(10, 10, 0, 0);
    TextView localTextView3 = new TextView(this);
    localTextView3.setGravity(3);
    localTextView3.setTextSize(18.0F);
    localTextView3.setText("商家单号：");
    localTextView3.setTextColor(Color.parseColor("#ff50494a"));
    this.c = new TextView(this);
    this.c.setGravity(3);
    this.c.setTextSize(18.0F);
    this.c.setTextColor(Color.parseColor("#ff50494a"));
    localLinearLayout6.addView(localTextView3, localLayoutParams9);
    localLinearLayout6.addView(this.c, localLayoutParams9);
    localLinearLayout1.addView(localLinearLayout6);
    LinearLayout localLinearLayout7 = new LinearLayout(this);
    localLinearLayout7.setBackgroundColor(Color.parseColor("#FFFFFF"));
    localLinearLayout7.setOrientation(0);
    localLinearLayout7.setPadding(0, 10, 0, 0);
    LinearLayout.LayoutParams localLayoutParams10 = new LinearLayout.LayoutParams(-2, -2);
    localLayoutParams10.gravity = 3;
    localLayoutParams10.setMargins(10, 10, 0, 0);
    TextView localTextView4 = new TextView(this);
    localTextView4.setGravity(3);
    localTextView4.setTextSize(18.0F);
    localTextView4.setText("下单时间：");
    localTextView4.setTextColor(Color.parseColor("#ff50494a"));
    this.d = new TextView(this);
    this.d.setGravity(3);
    this.d.setTextSize(18.0F);
    this.d.setTextColor(Color.parseColor("#ff50494a"));
    localLinearLayout7.addView(localTextView4, localLayoutParams10);
    localLinearLayout7.addView(this.d, localLayoutParams10);
    localLinearLayout1.addView(localLinearLayout7);
    LinearLayout.LayoutParams localLayoutParams11 = new LinearLayout.LayoutParams(-2, -2);
    localLayoutParams11.gravity = 3;
    localLayoutParams11.setMargins(10, 10, 0, 0);
    TextView localTextView5 = new TextView(this);
    localTextView5.setGravity(3);
    localTextView5.setTextSize(18.0F);
    localTextView5.setTextColor(Color.parseColor("#ff50494a"));
    localTextView5.setText("订单金额：");
    this.e = new TextView(this);
    this.e.setTextSize(18.0F);
    this.e.setId(100002);
    this.e.setTextColor(Color.parseColor("#ff50494a"));
    localLinearLayout4.addView(localTextView5, localLayoutParams11);
    localLinearLayout4.addView(this.e, localLayoutParams11);
    localLinearLayout1.addView(localLinearLayout4);
    LinearLayout localLinearLayout8 = new LinearLayout(this);
    localLinearLayout8.setOrientation(0);
    LinearLayout.LayoutParams localLayoutParams12 = new LinearLayout.LayoutParams(-1, 1);
    ImageView localImageView4 = new ImageView(this);
    localImageView4.setBackgroundColor(Color.parseColor("#ffc8c8cb"));
    localLinearLayout8.addView(localImageView4, localLayoutParams12);
    localLinearLayout1.addView(localLinearLayout8);
    LinearLayout localLinearLayout9 = new LinearLayout(this);
    localLinearLayout9.setOrientation(0);
    localLinearLayout9.setPadding(0, 0, 0, 0);
    LinearLayout.LayoutParams localLayoutParams13 = new LinearLayout.LayoutParams(-1, (int)(0.5F + 45.0F * getResources().getDisplayMetrics().density));
    localLayoutParams13.gravity = 17;
    localLayoutParams13.setMargins(10, 30, 10, 10);
    Button localButton = new Button(this);
    localButton.setBackgroundColor(Color.parseColor("#258EE5"));
    localButton.setTextColor(Color.parseColor("#FFFFFF"));
    localButton.setTextSize(18.0F);
    localButton.setText("返回商戶");
    localButton.setOnTouchListener(new ac(this));
    localLinearLayout9.addView(localButton, localLayoutParams13);
    localLinearLayout1.addView(localLinearLayout9);
    setContentView(localLinearLayout1);
    this.l = this;
    ExitApplication.a().a(this);
    Intent localIntent = getIntent();
    if (localIntent != null)
    {
      this.f = localIntent.getStringExtra("payIsSuccess");
      if (!this.f.equals("T"))
        break label1774;
    }
    label1774: for (this.f = "支付成功"; ; this.f = "支付失败")
    {
      this.g = localIntent.getStringExtra("merchantname");
      this.h = localIntent.getStringExtra("payOrderNo");
      this.i = localIntent.getStringExtra("payOrderDate");
      this.j = localIntent.getStringExtra("payOrderAmount");
      k = localIntent.getStringExtra("ActivityName");
      this.a.setText(this.f);
      this.b.setText(this.g);
      this.c.setText(this.h);
      this.d.setText(this.i);
      this.e.setText(this.j);
      return;
    }
  }

  public boolean onKeyDown(int paramInt, KeyEvent paramKeyEvent)
  {
    switch (paramInt)
    {
    default:
      return super.onKeyDown(paramInt, paramKeyEvent);
    case 4:
    }
    return true;
  }
}

/* Location:           C:\Users\user\Desktop\dd28_pcdd720\classes_dex2jar.jar
 * Qualified Name:     com.dinpay.plugin.activity.PayResultActivity
 * JD-Core Version:    0.6.2
 */